package com.keba.lamp.complaint.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * 诉讼状案件日志表
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-04-20 21:21:08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("ss_case_log")
public class CaseLog extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @TableField(value = "is_del", condition = EQUAL)
    private Integer isDel;
    /**
     * 租户ID
     */
    @TableField(value = "tenant_id", condition = EQUAL)
    private Long tenantId;
    /**
     * 原告
     */
    @TableField(value = "plaintff", condition = LIKE)
    private String plaintff;
    /**
     * 起诉状内容
     */
    @TableField(value = "complaint_content", condition = LIKE)
    private String complaintContent;
    /**
     * 被告
     */
    @TableField(value = "defendant", condition = LIKE)
    private String defendant;
    /**
     * 案件id
     */
    @TableField(value = "case_id", condition = EQUAL)
    private Long caseId;
    /**
     * 状态（0-失败，1-成功）
     */
    @TableField(value = "status", condition = EQUAL)
    private Integer status;



}
